package com.fast.controller;

import com.fast.entity.SysUser;
import com.fast.utils.shiro.ShiroUtils;

/**
 * Created by xiehaitao on 2017/9/9.
 */
public class BaseController {



    protected  SysUser getUser(){
       return ShiroUtils.getUserEntity();
    }


    protected Long getUserId(){
        return getUser().getUserId();
    }


    protected String getSalt(){
        return getUser().getSalt();
    }









}
